import com.caucho.hessian.client.HessianProxyFactory;
import com.hessian.test.service.HelloService;

import java.net.MalformedURLException;

/**
 * Created by zhaojun on 2017/04/27.
 */
public class App {

    public static void main(String[] args) throws MalformedURLException {
            String url = "http://192.168.10.66:8901/rpc/helloService";
            HessianProxyFactory factory = new HessianProxyFactory();
            HelloService helloService = (HelloService) factory.create(HelloService.class, url);
            System.out.println(helloService.hello("sasa"));
    }
}
